&shadow_right,
&shadow_top,
&shadow_bottom);
+
gdk_win32_surface_set_shadow_width (surface,
shadow_left,
shadow_right,
gdk_surface_layout_popup_helper (surface,
width,
height,
- impl->shadow.left,
- impl->shadow.right,
- impl->shadow.top,
- impl->shadow.bottom,
+ shadow_left,
+ shadow_right,
+ shadow_top,
+ shadow_bottom,
monitor,
&bounds,
layout,
final_rect.height);
}
else
- {
- gdk_win32_surface_move (surface, x, y);
- }
+ gdk_win32_surface_move (surface, x, y);
}
static void
if (impl->zero_shadow)
return;
- impl->shadow.left = left;
+ impl->shadow.left = left * impl->surface_scale;;
impl->shadow.right = right * impl->surface_scale;
- impl->shadow.top = top;
+ impl->shadow.top = top * impl->surface_scale;;
impl->shadow.bottom = bottom * impl->surface_scale;
impl->shadow_x = left + right;
impl->shadow_y = top + bottom;
int scale = impl->surface_scale;
RECT rect;
- if (GDK_IS_TOPLEVEL (surface) && impl->drag_move_resize_context.native_move_resize_pending)
+ if (impl->drag_move_resize_context.native_move_resize_pending)
{
surface->width = impl->next_layout.configured_width;
surface->height = impl->next_layout.configured_height;
impl->next_layout.configured_width = (rect.right - rect.left + scale - 1) / scale;
impl->next_layout.configured_height = (rect.bottom - rect.top + scale - 1) / scale;
- surface->x = rect.left / scale;
- surface->y = rect.top / scale;
+
+ if (GDK_IS_TOPLEVEL (surface))
+ {
+ surface->x = rect.left / scale;
+ surface->y = rect.top / scale;
+ }
+ else if (GDK_IS_POPUP (surface))
+ {
+ gdk_win32_surface_get_geometry (surface,
+ &surface->x, &surface->y,
+ NULL, NULL);
+ }
}
}